package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.product.ProductProductCombineEnableRequest;
import com.mes.cloud.api.dto.request.product.ProductProductCombinePageRequest;
import com.mes.cloud.entity.ProductProductCombine;
import com.mes.cloud.entity.vo.product.ProductProductCombinePageVo;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 产品组合关联
 *
 * @author xy
 * @version 2019-08-23 10:37:15
 * @email yuan.xue3@pactera.com
 */
public interface ProductProductCombineDao extends SelectByIdsMapper<ProductProductCombine>, Mapper<ProductProductCombine> {

    /**
     * <批量插入>
     *
     * @param addList
     * @return int
     * @author xy
     * @date 2019/8/23 13:46
     */
    int batchInsert(List<ProductProductCombine> addList);

    /**
     * <分页查询>
     *
     * @param pageRequest
     * @return List<ProductProductCombinePageVo>
     * @author xy
     * @date 2019/8/23 13:52
     */
    List<ProductProductCombinePageVo> pageList(ProductProductCombinePageRequest pageRequest);

    /**
     * <批量禁用>
     *
     * @param productProductCombineEnableRequest
     * @return int
     * @author xy
     * @date 2019/8/23 15:28
     */
    int batchUpdateEnable(ProductProductCombineEnableRequest productProductCombineEnableRequest);

}
